var webpack = require("webpack");
module.exports = {
    entry: {
        app : './src/js/index.js'
    },
    output: {
        filename : "./dist/js/index.js"
    },
    resolve : {
        extensions: ['', '.js', '.jsx','.min.js'],
        unsafeCache: true
    },
    module: {
        loaders: [
            {test: /\.js?$/, loader: 'babel-loader',exclude: /node_modules/},
            {test:/\.less?$/, loader: 'style-loader!css-loader!less-loader'},
            {test: /\.png$/, loader: "file-loader?name=../img/[hash:8].[name].[ext]"}
        ]
    }
};